package com.chinasoft.qiangge;

import com.chinasoft.teacher.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class Qiangge implements TrueWord {

    public Qiangge()
    {
        wordList.add("我光头强就要砍树！");
        wordList.add("强子呀，强子。");
        wordList.add("小熊熊别跑！");
        wordList.add("臭狗熊！！！");

        nameLidt.add("光头强");
        nameLidt.add("强子");
        nameLidt.add("小强强");
    }


    List<String> wordList = new ArrayList<>();
    List<String> nameLidt = new ArrayList<>();


    Random random = new Random();

    @Override
    public String getName() {

        int index = random.nextInt(nameLidt.size());
        return nameLidt.get(index);
    }
    @Override
    public String getWords() {
        // 得到随机数
        int index = random.nextInt(wordList.size());
        return wordList.get(index);
    }
}
